#ifndef MERCURY_H
#define MERCURY_H

#include <QObject>
#include "qextserialport.h"

struct MercuryData
{
    uint32_t Address;
    uint16_t Frequency;
    uint16_t Power;
};

class Mercury : public QObject
{
    Q_OBJECT
public:
    explicit Mercury(Qextserialport& port, QObject *parent = 0);

signals:
    void Status(bool bOk);
    void Data(MercuryData Data);

public slots:
    void ReadData();
};

#endif // MERCURY_H
